package com.example.foobar.dao.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.foobar.dto.DABaseDTO;
import com.example.foobar.entity.DaNewCommerCount;
import com.example.foobar.entity.ImsPzGuanhuaiTrack;
import com.example.foobar.param.ImsPzGuanhuaiTrackPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 *  服务类
 *
 * @author 郑英奔
 * @since 2021-05-31
 */
public interface ImsPzGuanhuaiTrackDaoService extends BaseService<ImsPzGuanhuaiTrack> {

    /**
     * 保存
     *
     * @param imsPzGuanhuaiTrack
     * @return
     * @throws Exception
     */
    boolean saveImsPzGuanhuaiTrack(ImsPzGuanhuaiTrack imsPzGuanhuaiTrack) throws Exception;

    /**
     * 修改
     *
     * @param imsPzGuanhuaiTrack
     * @return
     * @throws Exception
     */
    boolean updateImsPzGuanhuaiTrack(ImsPzGuanhuaiTrack imsPzGuanhuaiTrack) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteImsPzGuanhuaiTrack(Long id) throws Exception;

    Integer selectCount(LambdaQueryWrapper<ImsPzGuanhuaiTrack> imsPzGuanhuaiTrackLambdaQueryWrapper) throws Exception;

    public List<DABaseDTO> getActiveDataByOfficialAccountIdAndDataRange(Map<String, Object> params);

    int getSubscribeCount(Map<String, Object> params);

    int getUnsubscribeCount(Map<String, Object> params);

    Date minDateInDb();
}
